﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MoveNext.GrfFileManager
{
    public partial class ExtractErrorLogViewer : Form
    {
        public ExtractErrorLogViewer()
        {
            InitializeComponent();
        }

        public ExtractErrorLogViewer(SortableBindingList<ExtractErrorLog> dataSource)
            : this()
        {
            this.dgv.AutoGenerateColumns = false;
            this.dgv.DataSource = dataSource;
            this.lblStatus.Text = string.Format("{0} error(s).", dataSource.Count);
        }
    }
}
